package com.wty.basic.generic;

import org.junit.Test;

import java.util.ArrayList;

/**
 * 测试类型的擦除
 * @Author wangtengyu
 * @Create 2018-08-10-8:39
 */
public class clearDemo {

    @Test
    public void test1(){
        ArrayList<Integer> integerList=new ArrayList<>();
        ArrayList<String> strList=new ArrayList<>();
        System.out.println(integerList.getClass());
        System.out.println(strList.getClass());
        System.out.println(integerList.getClass().equals(strList.getClass())); //true
    }


}
